package main

import "fmt"

func main() {
	dic := map[int]int{0: 1, 1: 3, 2: 5}
	fmt.Println(dic)
	fmt.Println(dic[0])
	dic[1] = 666
	fmt.Println(dic)
	dic[10] = 888
	fmt.Println(dic)

	if value, ok := dic[1]; ok {
		fmt.Println("输出一下value ： ", value)
	}

	v, ok := dic[2]
	fmt.Println("输出一下 v ： ", ok, v)

	for k, v := range dic {
		fmt.Printf(" k: %d v: %d \n", k, v)
	}

}
